package com.zhaorui.mapper;

import com.zhaorui.entity.ActivityDictionary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhaorui.entity.ActivityUser;
import com.zhaorui.form.DictionaryAddFrom;
import com.zhaorui.form.DictionaryFrom;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.zhaorui.entity.ActivityDictionary
 */
@Repository
public interface ActivityDictionaryMapper extends BaseMapper<ActivityDictionary> {

    //会员等级下拉框查询
    List<DictionaryFrom> queryLevel();

    //会员综合查询
    List<DictionaryAddFrom> queryAllLevel(ActivityDictionary dicValue);

    //用于判断会员等级dic_key与dic_value是否已经存在
    Integer queryLevelNo(ActivityDictionary activityDictionary);


    //等级新增保存
    void saveLevel(ActivityDictionary activityDictionary);

    //通过dicType,dicValue找到id
    Integer queryByIdDic(ActivityDictionary activityDictionary);

    //通过id查找是否存在个数
    Integer queryUsersId(Integer id);

    // 逻辑删除
    void updateBydel(Integer id);

    //等级下拉框查询
    List<DictionaryFrom> queryTitle();
}




